#include <stdio.h>
int main(){
  int number,y;
  printf("input a number:");
  scanf("%d",&number);
  if(number%2==0)
      y=number*2;
  else
      y=number*3;
  printf("y=%d",y);	       
  return 0;
}
